package cc.geguol.scm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

import javax.annotation.Resource;

import cc.geguol.scm.dao.SupplierDao;
import cc.geguol.scm.entity.Supplier;
import cc.geguol.scm.service.SupplierService;

/**
 * 作者  Administrator
 * 时间  2017/5/8 11:41
 * 文件  Scm
 * 描述
 */
@Service("supplierService")
public class SupplierServiceImpl implements SupplierService {

	@Autowired
	private SupplierDao supplierDao;


	@Override
	public int insert(Supplier pojo) throws Exception {
		return supplierDao.insert(pojo);
	}

	@Override
	public int insertSelective(Supplier pojo){
		return supplierDao.insertSelective(pojo);
	}

	@Override
	public int insertList(List<Supplier> pojos){
		return supplierDao.insertList(pojos);
	}

	@Override
	public int update(Supplier pojo){
		return supplierDao.update(pojo);
	}

}
